package com.pinecone.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.pinecone.common.utils.CustomJsonDateDeserializer;
import com.pinecone.common.validator.group.UpdateGroup;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by hushangjie on 2017/9/7.
 */
@Accessors(chain = true)
@Data
//@JsonIgnoreProperties(ignoreUnknown = true)
public class LiveRoomDTO {
    //活动直播间id
    @NotNull(message = "该字段不能为空",groups = UpdateGroup.class)
    private String liveRoomId;
    //活动标题
    @NotBlank(message = "活动标题不能为空")
    private String eventTitle;
    //直播类别id
    @NotNull(message = "活动类别不能为空")
    private Integer eventTypeId;
    //活动预计开始时间：主要用来配合生成推流过期时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @NotNull(message = "活动预计开始时间不能为空")
    private Date eventStartTime;
    //直播海报封面
    /*@NotBlank(message = "视频海报不能为空")*/
    private String livePoster;
    //背景图
    private String backImg;
    //直播间描述
    private String eventDesc;
    //是否需要录制
    private boolean enableRecord;

}
